package com.jiuyi.service;

import com.jiuyi.common.R;
import com.jiuyi.entity.ShoppingCart;

import javax.servlet.http.HttpServletRequest;

/**
 * DATA: 2022/10/23
 * Author: 晨夕
 */
public interface ShoppingCartService {
    //添加订单
    R addShoppingCart(ShoppingCart shoppingCart, HttpServletRequest request);
    //查看购物车
    R<ShoppingCart> selectShoppingCart(HttpServletRequest request);
    //清空购物车
    R deleteShoppingCart(HttpServletRequest request);
    //减少订单
    R subShoppingCart(ShoppingCart shoppingCart, HttpServletRequest request);
}
